Skip to content

[main] Source code updates from dotnet/dotnet - #20135

Open
dotnet-maestro[bot] wants to merge 9 commits into
mainfrom
darc-main-3b2c11a2-af8b-4922-aad5-dde14cfbee8e
Open

[main] Source code updates from dotnet/dotnet#20135
dotnet-maestro[bot] wants to merge 9 commits into
mainfrom
darc-main-3b2c11a2-af8b-4922-aad5-dde14cfbee8e

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the VMR
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/dotnet

Associated changes in source repos

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/dotnet:322f5005d6589845edf1d69d55820a7d1ab9a09c..https://github.com/dotnet/fsharp:darc-main-3b2c11a2-af8b-4922-aad5-dde14cfbee8e

@dotnet-maestro

dotnet-maestro Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@github-actions github-actions Bot added the AI-Tooling-Check-Bypassed Tooling check: non-fork PR, not diff-analyzed label Aug 4, 2026
Copilot AI and others added 6 commits August 4, 2026 11:05
…ix NU1504)

The backflow added the canonical PrivateAssets=all override into the shared
fsc.targets/fsi.targets and the FSharp.Build.UnitTests item group, but the
earlier codeflow (#20058) had already added a conditional (net-core-only)
override directly in fsc.fsproj, fsi.fsproj and FSharp.Build.UnitTests.fsproj.
This produced two identical PackageReference items for net11.0, failing restore
with NU1504 (WarnAsError) across all CI jobs.

Removing the redundant conditional blocks aligns these projects with the VMR
(dotnet/dotnet) canonical state; each project now references the package
exactly once via the shared item group / .targets import.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The Microsoft.CommonLanguageServerProtocol.Framework.Proxy project pulls
MessagePack 2.5.108 transitively via Microsoft.CommonLanguageServerProtocol.Framework.
That version has known moderate/high severity vulnerabilities, so NuGetAudit
(WarnAsError) failed restore/build with NU1902/NU1903 on every Windows CI job
that builds VisualFSharp.slnx.

Pin MessagePack to the patched 2.5.302, mirroring the existing pin already
present in the sibling FSharp.Compiler.LanguageServer.fsproj. PrivateAssets="all"
keeps the dependency private to match the wrapped framework reference.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Brings the direct delegates feature into the darc dependency-update branch:
- New DirectDelegate optimization (src/Compiler/Optimize/DelegateForwarding.fs)
  wired into Optimizer.fs and IlxGen.fs codegen
- LanguageFeature flag + FSComp diagnostic (with localized xlf updates)
- EmittedIL DirectDelegates component tests and baselines
- Central Package Management migration (Directory.Packages.props,
  eng/Packages.props and per-project PackageReference/version updates)

Conflicts resolved by the previous session.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The codeflow merge of 'Implement direct delegates' combined the pre-CPM proxy csproj (with Version= attributes plus the MessagePack security pin) with the CPM-compatible version from main, producing duplicate PackageReference items. Under Central Package Management this caused NU1504 (duplicate items) and NU1008 (Version not allowed on PackageReference).

Dedupe to the CPM-compatible form: drop the Version= attributes, keep the MessagePack pin (central PackageVersion is already 2.5.302, preserving the NU1902/NU1903 fix) and the Microsoft.VisualStudio.Threading VersionOverride.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PR #20081 (Secure release-note checks for fork pull requests) downgraded the check_release_notes workflow permissions from 'pull-requests: write' to 'pull-requests: read' while keeping 'issues: write'. Commenting on a pull request via GitHub Actions requires 'pull-requests: write' (issues: write alone is insufficient for PR conversation comments), so the final 'Create or update comment' step began failing with 'Resource not accessible by integration' (HTTP 403). PR #20135 is the first codeflow PR to run the new workflow and surfaced the regression.

Restore 'pull-requests: write' at both workflow and job level while keeping the rest of the #20081 hardening (contents: read, explicit env, stale-head guards).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

✅ No release notes required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Tooling-Check-Bypassed Tooling check: non-fork PR, not diff-analyzed

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant